#include <iostream>
using namespace std;
class MyCAS
{
private:
	static MyCAS* m_instance;
public:
	static MyCAS* GetInstatnce()
	{
		if(m_instance == nullptr)
		{
			std::unique_lock();
			if(m_instance == nullptr)
			{
				m_instance = new MyCAS();
				static  huishou l;
			}
		}
		return m_instance;
	}
	class huishou
	{
		public:
			~huishou()
			{
				if(MyCAS::m_instance != nullptr)
					delete MyCAS::m_instance;
			}
	};
};

int main()
{
	cout << "test" << endl;
	return 0;
}
